package com.auth.proejct.cn;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * @author yihur
 */
@SpringCloudApplication
@RestController
public class SpringServiceGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringServiceGatewayApplication.class, args);
    }


    @RequestMapping("/fallback")
    public Mono<String> fallback() {
        return Mono.just("fallback");
    }

}
